def checker(xmlsrclst):
	
	d = feedparser.parse(xmlsrclst[2])
	entry1 = d.entries
	
	date1 = entry1[0].updated
	link1 = entry1[0].link
	
	e = feedparser.parse(xmlsrclst[0])
	entry2 = e.entries
	date2 = entry2[0].updated
	link2 = entry2[0].link
	
	if date1 == date2 and link1 == link2: ##i am not interested with the reedited entires
		return False 
	else:
		return True

def update(xmlsrclst):
	
	import os
	os.chdir(xmlsrclst[0])
	os.popen("rm -rf *")
	os.popen("wget "+xmlsrclst[2])
	os.chdir("..")
	os.chdir("..")
	
def cfgread(file):
	
	f=open(file,"r")
	cfg=f.readlines()
	rslt=[]
	for x in cfg:
		li=x.strip().split(":")
		if len(li)>1:
			rslt.append(li[1].strip())		
	return rslt